package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;

import java.util.List;

public interface SensitiveService extends IService<AdSensitive> {
    /**
     * 分页查询敏感词
     * @param sensitiveDto
     * @return
     */
    ResponseResult fingSensitiveByPage(SensitiveDto sensitiveDto);

    /**
     * 保存敏感词
     * @param sensitive
     * @return
     */
    ResponseResult saveSensitive(AdSensitive sensitive);

    /**
     * 修改敏感词信息
     * @param sensitive 敏感词对象
     * @return
     */
    ResponseResult updateSensitive(AdSensitive sensitive);

    /**
     * 根据id删除敏感词
     * @param id 敏感词id
     * @return
     */
    ResponseResult deleteSensitiveById(Integer id);

    /**
     * 查询敏感词内容列表
     * @return
     */
    public ResponseResult<List<String>> selectAllSensitives();
}
